import request from '@/api/socialized-servce/index.js' //引入http.js
const api = request

export default {
	// 获取产品
	queryByCondition(params){
		let url = 'socialized-insure/product/queryByCondition'
		return api.request(url,'post',{
			...params
		})
	},
	// 获取产品 分页--推荐精选
	queryPageByCondition(params){
		let url = 'socialized-insure/product/queryPageByConditionWithAreaLimit'
		return api.request(url,'post',{
			...params
		})
	},
	// id查询产品
	queryById(params){
		let url = 'socialized-insure/product/queryById'
		return api.request(url,'get',params)
	},
	// id查询产品 USER
	queryByIdUser(params){
		let url = 'socialized-insure/productUser/queryById'
		return api.request(url,'get',params)
	},
	// 条件查询轮播图
	queryByConditionSlide(params){
		let url = 'socialized-insure/slideshowImg/queryPageByConditionWithAreaLimit'
		return api.request(url,'post',{
			...params
		})
	},
	// 条件查询意向用户
	queryByConditionUser(params){
		let url = 'socialized-insure/productUser/querySizeByProductId'
		return api.request(url,'get',params)
	},
	// 分页条件查询已咨询产品
	queryPageByConditionUser(params){
		let url = 'socialized-insure/productUser/queryPageByCondition'
		return api.request(url,'post',{
			...params
		})
	},
	// 添加意向用户
	addUser(params){
		let url = 'socialized-insure/productUser/add'
		return api.request(url,'post',{
			...params
		})
	},
}